//
//  EncounterViewController.m
//  Copy_AiKapPu_Personal_OC
//
//  Created by taojianz on 2017/7/11.
//  Copyright © 2017年 taojianz. All rights reserved.
//

#import "EncounterViewController.h"
#import "AKPPushTestViewController.h"
#import "AKPPersonEmptyView.h"
#import <nbappdev/nbappdev.h>

@interface EncounterViewController ()

@property (strong,nonatomic) NSMutableArray *personList;

@end

@implementation EncounterViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    if (_personList == nil){
        AKPPersonEmptyView *emptyView = [[AKPPersonEmptyView alloc]init];
        emptyView.frame = self.view.bounds;
        [self.view addSubview:emptyView];
    }
    [self setupNaivgationController];
    
}

// MARK: 设置navigationController
-(void)setupNaivgationController{
    self.navigationController.navigationBar.tintColor = UIColorFromrgb(53, 53, 53, 1);
    
    // FIXME: 地区、爱心图标点击事件
    
    UIBarButtonItem *leftItem = [[UIBarButtonItem alloc]initWithTitle:@"选择地区" style:UIBarButtonItemStylePlain target:self action:nil];
    [leftItem setTitleTextAttributes:@{NSFontAttributeName:[UIFont systemFontOfSize:16]} forState:UIControlStateNormal];
    self.navigationItem.leftBarButtonItems = @[leftItem];
    
    UIImage *itemImage = [UIImage imageNamed:@"0-heart"] ; 
    UIImage *originalItemImage = [itemImage imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
    
    UIBarButtonItem *rightItem = [[UIBarButtonItem alloc]initWithImage:originalItemImage  style:UIBarButtonItemStylePlain target:self action:nil];
    self.navigationItem.rightBarButtonItems = @[rightItem];
    
    
    
}

-(void)showTestView{
    AKPPushTestViewController *vc = [[AKPPushTestViewController alloc]init];
    
    [self.navigationController pushViewController:vc animated:true];
}



@end
